import { clearIsAdmin, clearPersonalCenterMenu, clearToken, clearUserInfo } from '@/utils/cookie.js';

export function useLogin() {
  function unLoginClearCookie() {
    clearToken();
    clearUserInfo();
    clearIsAdmin();
    clearPersonalCenterMenu();
  }
  return {
    unLoginClearCookie,
  };
}
